package com.chen.palmar.entity;

import android.text.TextUtils;

import java.util.List;

/**
 * @author Chen
 * @date 2018/1/24
 * 功能描述：
 */

public class ApplyTagEntity {

    /**
     * resultCode : 1000
     * message : null
     * error : null
     * data : [{"labelId":1,"labelName":"麻辣"},{"labelId":2,"labelName":"进口食品"}]
     * dataReserve1 : null
     * dataReserve2 : null
     * navigatePageNumbers : null
     */

    private int resultCode;
    private String message;
    private String error;
    private String dataReserve1;
    private String dataReserve2;
    private String navigatePageNumbers;
    private List<DataBean> data;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getDataReserve1() {
        return dataReserve1;
    }

    public void setDataReserve1(String dataReserve1) {
        this.dataReserve1 = dataReserve1;
    }

    public String getDataReserve2() {
        return dataReserve2;
    }

    public void setDataReserve2(String dataReserve2) {
        this.dataReserve2 = dataReserve2;
    }

    public String getNavigatePageNumbers() {
        return navigatePageNumbers;
    }

    public void setNavigatePageNumbers(String navigatePageNumbers) {
        this.navigatePageNumbers = navigatePageNumbers;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * labelId : 1
         * labelName : 麻辣
         */

        private int labelId;
        private String labelName;

        public int getLabelId() {
            return labelId;
        }

        public void setLabelId(int labelId) {
            this.labelId = labelId;
        }

        public String getLabelName() {
            return labelName;
        }

        public void setLabelName(String labelName) {
            this.labelName = labelName;
        }

        @Override
        public String toString() {
            if (!TextUtils.isEmpty(labelName)){
                return labelName;
            }
            return super.toString();
        }
    }
}
